<template>
	<b-layout-index>
		<navbar bgcolor="#fff" title="ئەككىلىك كود مەركىزى"></navbar>

		<view>
			<block v-if="type==3">
				<block v-for="(item,index) in datalist">
					<view class="mg-10 pd-10 br-rd-6 bg-white">
						<b-notify-item :item="item"></b-notify-item>
					</view>
				</block>
			</block>
		</view>

	</b-layout-index>
</template>

<script>
	import {
		findByMyList
	} from "@/api/notify.js"
	export default {
		data() {
			//console.log("DATTTTTTTTTTTTT", o)
			return {
				type: 0,
				datalist: []
			}
		},
		onLoad({
			type = 0
		}) {
			this.type = type;
			console.log("type", type)
			this.getData(3)
		},
		methods: {
			getData: function(type = 0) {
				console.log("HHHHHHHHHHHHHHH", type)
				var the = this;
				findByMyList(type).then(res => {
					console.log(res)
					the.datalist = res;
				})
			}
		}
	}
</script>

<style>
</style>
